package superConference;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.*;
 
/**
*
* @author madushanka
*/
 
//Creating extended class of JComponent class
 
class BackgroundImageFrame extends JComponent {
 
Image i;
 
//Creating Constructer
public BackgroundImageFrame(Image i) {
this.i = i;
 
}
 
//Overriding the paintComponent method
@Override
public void paintComponent(Graphics g) {
 
g.drawImage(i, 0, 0, null);  // Drawing image using drawImage method
 
}
}
 
